package com.tarena.dang.daos;

import java.sql.SQLException;
import java.util.List;

import com.tarena.dang.pojos.Book;
import com.tarena.dang.pojos.Category;
import com.tarena.dang.pojos.Product;

public interface ProductDAO {
	public List<Product> findNewProduct(int topSize) throws SQLException;

	public List<Book> findBookListByCatId(int currentId, int page, int pageSize)
			throws SQLException;

	public List<Category> findBookById(int pid) throws SQLException;

	public Product findProductById(int pid) throws SQLException;

	// public int loadMaxPage(int currentId, int pageSize) throws SQLException ;
}
